#include <stdio.h>
#include <string.h>
int find_student(char **s,char *n);
int main(void)
{
	char *students[] = {"jin1","jin2","jin3",NULL};
	char name[10] = {'\0'};
	while(1)
	{
		scanf("%s",name);
		if(find_student(students,name) == 1)
		{
			printf("student exists\n");
		}
		else
		{
			printf("student does exist\n");
		}
	}
	return 0;
}
int find_student(char **s,char *n)
{
	while(*s != NULL)
	{
		//printf("%p\n",s);
		if(strcmp(*s,n) == 0)
		{
			return 1;
		}
		s++;
	}
	return 0;
}
